import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import VueAxios from 'vue-axios'
import DataV from '@kjgl77/datav-vue3'
import toast from '@/components/Toast/toast.js';

import "@/assets/reset.css"
import '@/assets/scss/style.scss';

const app = createApp(App)

// 配置Element Plus
app.config.globalProperties.$ELEMENT = { size: 'default' }
app.config.globalProperties.$message = window.ElementPlus.ElMessage
app.config.globalProperties.$messageBox = window.ElementPlus.ElMessageBox

app.use(router).use(VueAxios, axios).use(DataV)
app.config.globalProperties.$toast = toast;

app.mount('#app')
